<template>
  <div class="main-right">

      <el-table
          :data="this.resultList"
          border
          style="width: 100%"
          fit>
          <el-table-column
              fixed
              prop="id"
              label="序号"
              width="200">
          </el-table-column>
          <el-table-column
              prop="title"
              label="成果标题"
              width="800">
          </el-table-column>
          <el-table-column
              fixed="right"
              label="操作"
              width="100">
              <template slot-scope="scope">
                  <el-button @click="deleteResult(scope.row)" type="text" size="small">删除</el-button>
              </template>
          </el-table-column>
      </el-table>
      <el-button style="margin-top: 10px" type="primary" @click="toDetail">添加成果</el-button>
  </div>
</template>
<script>
import Nav from "./components/nav"
export default {

    data(){
        return {
            resultList:[]

        }
    },
    mounted(){
       this.getResultList();
    },
    methods:{
        getResultList(){
                this.centralControl.axios.centralControl(
                    'getResultList',
                    res => {
                        this.resultList=res;
                    },
                    {}
                );
        },
      toDetail(){
        this.$router.push("/adminResearchFindingsDetail")
      }
    }
}
</script>
<style lang="less" scoped>
.right-nr {
    font-size: 16px;
    color: #666;
    position: relative;
    padding-bottom: 50px;
}
.data-list {
    padding-top: 5px;
    padding-bottom: 30px;
}
.data-list li {
    font-size: 14px;
    line-height: 45px;
    border-bottom: 1px dotted #ccc;
}
ul.data-list > li > a {
    color: #333;
    font-size: 16px;
    background: url(../../assets/img/lia.png) no-repeat left center;
    padding-left: 12px;
}
</style>
